package com.mashibing.test.case7.scan.pkg1;

import com.mashibing.test.case7.entities.Book;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.List;

@Repository
public class BookDao {
	private static final List<Book> books;
	static {
		books = new ArrayList<>();
		books.add(new Book("西游记",20));
		books.add(new Book("红楼梦",30));
	}

	public List<Book> check() {
		return books;
	}
}
